package com.shop.service.implement;

import java.util.List;

import com.shop.dao.ISituationDao;
import com.shop.pojo.Situation;
import com.shop.service.ISituationService;



public class SituationService implements ISituationService{
	private ISituationDao situationDao;
	
	public List<Situation> findAll(){
		return situationDao.findAll();
	}
	public Situation findById(String id){
		return situationDao.findById(id);
	}
	
	public ISituationDao getSituationDao() {
		return situationDao;
	}
	public void setSituationDao(ISituationDao situationDao) {
		this.situationDao = situationDao;
	}
	public void deleteByid(String id) {
		situationDao.deleteById(id);
	}
	public void save(Situation situation) {
		situationDao.save(situation);
		
	}
}
